package com.hl.service.serviceImpl;

import com.hl.domain.Charge;
import com.hl.domain.ChargeAndxizun;
import com.hl.mapper.ChargeMapper;
import com.hl.service.ChargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author：王祖威
 * @Date ：2024/9/10 17:28
 */
@Service
public class ChargeServiceImpl implements ChargeService {
    @Autowired
    private ChargeMapper chargeMapper;


    @Override
    public List<ChargeAndxizun> findAll() {
        return chargeMapper.findAll();
    }

    @Override
    public int insertSelective(Charge record) {
        return chargeMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Charge record) {
        return chargeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return chargeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<Charge> findlike(String name) {
        return chargeMapper.findlike(name);
    }


}
